package com.mark.web.sys.entity.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 系统资源新增表单
 * @Author: Mark
 * @CreateDate: 2019/1/13 20:15
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
@ApiModel(value = "资源新增表单")
public class ResourceFrom {
    @ApiModelProperty(value = "父级ID",required = true)
    private Integer parentId;

    @ApiModelProperty(value = "资源名称",required = true)
    @NotBlank
    private String name;

    @ApiModelProperty(value = "资源类型",required = true)
    @NotBlank
    private Short type;

    @ApiModelProperty(value = "链接",required = true)
    @NotBlank
    private String href;

    @ApiModelProperty(value = "图标",required = true)
    @NotBlank
    private String icon;

    @ApiModelProperty(value = "层级",required = true)
    private Short level;

    @ApiModelProperty(value = "权重",required = true)
    private Short priority;

    /**
     * 是否可以修改（1：是；2：否。）
     */
    @ApiModelProperty(value = "是否可以修改",required = true)
    private Byte isCanChange;

    @ApiModelProperty(value = "操作权限",required = true)
    @NotBlank
    private String permission;

    /**
     * 菜单（1：是；2：否。）
     */
    @ApiModelProperty(value = "是否菜单",required = true)
    @NotBlank
    private Byte isMenu;
}
